7ee48fe0d821f5b23a8954fa642d0048960007e7,contrib/parseq-retry/src/main/java/com/linkedin/parseq/retry/RetryPolicy.java,RetryPolicy,attempts,#number#,41
Before Change
* @param <U> Type of a task result, used for strongly typed processing of outcomes.
*/
public static <U> RetryPolicy<U> attempts(int attempts) {
return new RetryPolicy<>("RetryPolicy.attempts", TerminationPolicy.limitAttempts(attempts), BackoffPolicy.constant(0),
EventMonitor.ignore(), error -> ResultClassification.ACCEPTABLE, ErrorClassification.DEFAULT);
}
/**
After Change
* @param <U> Type of a task result, used for strongly typed processing of outcomes.
*/
static <U> RetryPolicyBuilder<U> attempts(int attempts) {
return RetryPolicyBuilder.create("RetryPolicy.attempts", TerminationPolicy.limitAttempts(attempts), BackoffPolicy.constant(0),
EventMonitor.ignore(), error -> ResultClassification.ACCEPTABLE, ErrorClassification.DEFAULT);
}
/**